var username=tool.getCookie('username')
    if(username){
        $('.logininfo').html(`
        <li class="logout" style="margin: 0 10px;">退出</li>
        <li style="color: #f00; font-size: 18px;">欢迎&nbsp;&nbsp;<span style="font-size:14px;color:yellowgreen;">${username}</span></li>
        `)
        $('.logout').click(function(){
            tool.removeCookie('username')
            $('.logininfo').html(`
            <li class="logininfo"><a href="./登录.html"><span class="dl">登录</span></a>&nbsp;&nbsp;&nbsp;<a href="./注册.html"><span class="zc">注册</span></a><span class="header-1">|</span></li>
            `)
        })
    }